import request from '@/config/axios'
import type { CourseShoucangData,CourseShoucangDate } from '../course/types'

export const getCourseshoucang = (params: any): Promise<IResponse<CourseShoucangData[]>> => {
  return request.get({ url: 'http://localhost:8081/personnel/selCourseCollection', params })
}

export const getCourseshoucangDate = (params: any) => {
  return request.get({ url: 'http://localhost:8081/personnel/selCourseCollection2', params })
}

export const getCourseDianzan = (params: any): Promise<IResponse<CourseShoucangData[]>> => {
  return request.get({ url: 'http://localhost:8081/personnel/selCoursePraise', params })
}

export const getCoursedianzanDate = (params: any) => {
  return request.get({ url: 'http://localhost:8081/personnel/selCoursePraise2', params })
}

export const getCoursePur = (params: any) => {
  return request.get({ url: 'http://localhost:8081/teacherSystem/CoursePurchaseStatistics', params })
}

export const getCourseGuankan = (params: any) => {
  return request.get({ url: 'http://localhost:8081/personnel/selCourseLookNum', params })
}

export const getYuekao = (params: any) => {
  return request.get({ url: 'http://localhost:8081/yuekao', params })
}

export const diaoyong = (params: any) => {
  return request.get({ url: 'http://localhost:8081/diaoyong', params })
}


